package se.webbzon.boltzmann.editor.factory.worldobject;

import se.webbzon.boltzmann.environment.AbstractEnvironment;
import se.webbzon.boltzmann.game.object.trigger.SequenceTrigger;
import se.webbzon.boltzmann.game.object.trigger.TriggerCondition;
import se.webbzon.oschi01.worldobject.WorldObject;

public class SequenceTriggerFactory implements WorldObjectFactory{

	// The abstract environment in which the trigger should be 
	// created
	private final AbstractEnvironment env;

	/*============================================================
	Constructors
	============================================================*/

	public SequenceTriggerFactory(AbstractEnvironment env) {
		this.env = env;
	}

	/*============================================================
	Public Methods
	============================================================*/
		
	@Override public WorldObject makeWorldObject() {
		return new SequenceTrigger(env, TriggerCondition.CREATE);
	}

	@Override public String getName() {
		return "Sequence Trigger";
	}

}
